export default {
  type: 'pie',
  option: {
    title: {
      text: 'Referer of a Website',
      top: 10,
      textStyle: {
        fontSize: '16rem',
        color: '#262626',
        fontWeight: 700
      }

      // subtext: 'Fake Data',
      // left: 'center'
    },
    tooltip: {
      trigger: 'item'
    },
    labelLine: {
      show: false
    },
    color: ['#FF4D4F', '#1890FF', '#FAAD14', '#854DE2', '#52C41A'],
    legend: {
      orient: 'vertical',
      top: 'center',
      // left: 'center'
      left: '60%',
      itemWidth: 16,
      itemHeight: 4,
      borderRadius: 4
      // right: '50%'
    },
    series: [
      {
        name: 'Access From',
        type: 'pie',
        radius: '50%',
        center: ['20%', '50%'],
        // label: {
        //   position: 'inner',
        //   formatter: '{b}\n {c}',
        //   textStyle: {
        //     color: '#fff',
        //     fontSize: '14rem'
        //   }
        // },

        data: [
          { value: 1048, name: 'Search Engine' },
          { value: 735, name: 'Direct' },
          { value: 580, name: 'Email' },
          { value: 484, name: 'Union Ads' },
          { value: 300, name: 'Video Ads' }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
  }
}
